package double_stream_join;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 每条记录对应的Bean类
 */
public class UserBehavior {
    @JsonFormat
    private long user_id;  // 用户id

    @JsonFormat
    private long item_id; // 商品id

    @JsonFormat
    private long category_id; // 商品类目ID

    @JsonFormat
    private String behavior; // 行为类型

    //    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'")
    @JsonFormat
    private long ts; // 时间戳

    public UserBehavior() {
    }

    public UserBehavior(long user_id, long item_id, long category_id, String behavior, long ts) {
        this.user_id = user_id;
        this.item_id = item_id;
        this.category_id = category_id;
        this.behavior = behavior;
        this.ts = ts;
    }
}

